class UserInfo {
  String? pageNum;
  String? pageSize;
  String? id;
  String? realName;
  String? avatar;
  String? userName;
  String? phone;
  int? sex;
  String? password;

  UserInfo({
    this.pageNum,
    this.pageSize,
    this.id,
    this.realName,
    this.avatar,
    this.userName,
    this.phone,
    this.password,
  });

  factory UserInfo.fromJson(Map<String, dynamic> json) => UserInfo(
        pageNum: json['pageNum'] as String?,
        pageSize: json['pageSize'] as String?,
        id: json['id'] as String?,
        realName: json['realName'] as String?,
        avatar: json['avatar'] as String?,
        userName: json['userName'] as String?,
        phone: json['phone'] as String?,
        password: json['password'] as String?,
      );

  Map<String, dynamic> toJson() => {
        'pageNum': pageNum,
        'pageSize': pageSize,
        'id': id,
        'realName': realName,
        'avatar': avatar,
        'userName': userName,
        'password': password,
        'phone': phone,
      };
}
